package org.springblade.core.ds;

import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

@Slf4j
@Data
@Accessors(chain = true)
public class SQResult {
    public SQResult() {
    }

    public SQResult(String sql) {
        this.sql = sql;
    }

    private List<List<Object>> valueList = new ArrayList<>();

    private String sql;


    public SQResult setValue(List<Object> rowList) {
        if (rowList != null) {
            this.valueList.add(rowList);
        }
        return this;
    }
}
